﻿using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    public class DefineButtonCxformTag : Tag
    {

        public ushort ButtonId
        {
            get;
            protected set;
        }

        public CXFormRecord ButtonColorTransform
        {
            get;
            protected set;
        }

        public DefineButtonCxformTag(int len, int offset)
            : base(TagCodes.DefineButton, len, offset)
        {
            
        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            ButtonId = reader.ReadUInt16();

            ButtonColorTransform = new CXFormRecord();
            ButtonColorTransform.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
